home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 January: Mac OS SDK / Dev.CD Jan 96 SDK / Dev.CD Jan 96 SDK1.toast / Development Kits (Disc 1) / MacODBC / ODBC Tools / SampleSetup / Sources / SampleSetup.r < prev    next >
Encoding:
Text File  |  1995-06-29  |  2.6 KB  |  172 lines  |  [TEXT/MPS ]

  1. /*
  2.  *    ODBCdbmsSetup.r
  3.  *
  4.  *    Resource descriptions for the setup dialog.
  5.  *
  6.  *    Â© 1993 by Apple Computer, Inc., all rights reserved.
  7.  */
  8.  
  9. #include "Types.r"
  10. #include "ODBCTypes.r"
  11.  
  12. /*
  13.  *    the brand name resource. this string is displayed to the user
  14.  *    whenever a list of function sets with the same parent id's are
  15.  *    shown, e.g. the list of all odbc drivers. the current version of
  16.  *    the apple shared library manager doesn't have a way to associate
  17.  *    a brand name string with a shared library.
  18.  */
  19.  
  20. resource 'odbc' (0) {{ "Sample" }};
  21.  
  22. /*
  23.  *    the setup dialog and its resources
  24.  */
  25.  
  26. resource 'DLOG' (134, "DBMSsetup") {
  27.     {70, 50, 320, 430},
  28.     dBoxProc,
  29.     invisible,
  30.     noGoAway,
  31.     0x0,
  32.     134,
  33.     "DBMS Setup Example"
  34. };
  35.  
  36. resource 'DITL' (134, "DBMSsetup") {
  37.     {    /* array DITLarray: 15 elements */
  38.         /* [1] */
  39.         {208, 280, 228, 360},
  40.         Button {
  41.             enabled,
  42.             "OK"
  43.         },
  44.         /* [2] */
  45.         {208, 176, 228, 256},
  46.         Button {
  47.             enabled,
  48.             "Cancel"
  49.         },
  50.         /* [3] */
  51.         {44, 12, 60, 142},
  52.         StaticText {
  53.             disabled,
  54.             "Data Source Name:"
  55.         },
  56.         /* [4] */
  57.         {72, 56, 88, 141},
  58.         StaticText {
  59.             disabled,
  60.             "Description:"
  61.         },
  62.         /* [5] */
  63.         {100, 92, 116, 139},
  64.         StaticText {
  65.             disabled,
  66.             "Other:"
  67.         },
  68.         /* [6] */
  69.         {44, 144, 60, 366},
  70.         EditText {
  71.             enabled,
  72.             ""
  73.         },
  74.         /* [7] */
  75.         {72, 144, 88, 366},
  76.         EditText {
  77.             enabled,
  78.             ""
  79.         },
  80.         /* [8] */
  81.         {100, 144, 116, 366},
  82.         EditText {
  83.             enabled,
  84.             ""
  85.         },
  86.         /* [9] */
  87.         {148, 12, 164, 96},
  88.         StaticText {
  89.             disabled,
  90.             "Translation:"
  91.         },
  92.         /* [10] */
  93.         {148, 96, 164, 276},
  94.         StaticText {
  95.             disabled,
  96.             "No Translator                           "
  97.             "     "
  98.         },
  99.         /* [11] */
  100.         {146, 280, 166, 360},
  101.         Button {
  102.             enabled,
  103.             "Select…"
  104.         },
  105.         /* [12] */
  106.         {132, 12, 134, 369},
  107.         UserItem {
  108.             disabled
  109.         },
  110.         /* [13] */
  111.         {176, 12, 178, 369},
  112.         UserItem {
  113.             disabled
  114.         },
  115.         /* [14] */
  116.         {8, 12, 24, 368},
  117.         StaticText {
  118.             disabled,
  119.             "Sample Data Source Configuration"
  120.         },
  121.         /* [15] */
  122.         {24, 12, 26, 369},
  123.         UserItem {
  124.             disabled
  125.         }
  126.     }
  127. };
  128.  
  129. resource 'dctb' (134, "DBMSsetup")
  130. {
  131.     {    /* array ColorSpec: 0 elements */
  132.     }
  133. };
  134.  
  135. resource 'ALRT' (1000, "String Too Long!", purgeable) {
  136.     {40, 40, 164, 394},
  137.     1000,
  138.     {    /* array: 4 elements */
  139.         /* [1] */
  140.         OK, visible, sound1,
  141.         /* [2] */
  142.         OK, visible, sound1,
  143.         /* [3] */
  144.         OK, visible, sound1,
  145.         /* [4] */
  146.         OK, visible, sound1
  147.     }
  148. };
  149.  
  150. resource 'DITL' (1000, "String Too Long!", purgeable) {
  151.     {    /* array DITLarray: 3 elements */
  152.         /* [1] */
  153.         {88, 248, 108, 328},
  154.         Button {
  155.             enabled,
  156.             "So Sue Me"
  157.         },
  158.         /* [2] */
  159.         {16, 16, 48, 48},
  160.         Icon {
  161.             disabled,
  162.             0
  163.         },
  164.         /* [3] */
  165.         {16, 64, 68, 333},
  166.         StaticText {
  167.             disabled,
  168.             "\"^0\" cannot be longer than ^1 characters."
  169.         }
  170.     }
  171. };
  172.